<%--
  Created by IntelliJ IDEA.
  User: WCX
  Date: 2024/12/9
  Time: 19:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<HTML><BODY BGCOLOR=cyan>
<h3>这是一个简单的 JSP 页面</h3>

<%
    int sum = 0;
    for (int i = 1; i <= 100; i++) {
        sum += i;
    }
%>
<h4>1 到 100 的连续和是： <%= sum %></h4>
</BODY></HTML>
